package entity;

public class DTO2 {
    private String name;
    private String pname;

    public DTO2(String name, String pname) {
        this.name = name;
        this.pname = pname;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getPname() {
        return pname;
    }
    public void setPname(String pname) {
        this.pname = pname;
    }

    @Override
    public String toString() {
        return "DTO2{" +
                "name='" + name + '\'' +
                ", pname='" + pname + '\'' +
                '}';
    }
}
